package org.changs.game.android.data.db.model;

import com.google.gson.annotations.SerializedName;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;


@Entity(nameInDb = "mqttv_message")
public class MqttvMessage {

    public static final String TYPE_CHAT = "chat";
    public static final String TYPE_SET_LANGUAGE = "setting-language";

    @SerializedName("id")
    @Id(autoincrement = true)
    private Long id;

    @Property(nameInDb = "type")
    @SerializedName("type")
    private String type;

    @Property(nameInDb = "content")
    @SerializedName("content")
    private String content;

    @Property(nameInDb = "attach_url")
    @SerializedName(value = "attach_url", alternate = {"attachUrl"})
    private String attachUrl;

    @Property(nameInDb = "state")
    @SerializedName("state")
    private String state;

    @Property(nameInDb = "send_time")
    @SerializedName(value = "send_time", alternate = {"sendTime"})
    private Long sendTime;

    @Property(nameInDb = "receive_time")
    @SerializedName(value = "receive_time", alternate = {"receiveTime"})
    private Long receiveTime;

    @Generated(hash = 833482727)
    public MqttvMessage(Long id, String type, String content, String attachUrl,
                        String state, Long sendTime, Long receiveTime) {
        this.id = id;
        this.type = type;
        this.content = content;
        this.attachUrl = attachUrl;
        this.state = state;
        this.sendTime = sendTime;
        this.receiveTime = receiveTime;
    }

    @Generated(hash = 782685695)
    public MqttvMessage() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAttachUrl() {
        return this.attachUrl;
    }

    public void setAttachUrl(String attachUrl) {
        this.attachUrl = attachUrl;
    }

    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Long getSendTime() {
        return this.sendTime;
    }

    public void setSendTime(Long sendTime) {
        this.sendTime = sendTime;
    }

    public Long getReceiveTime() {
        return this.receiveTime;
    }

    public void setReceiveTime(Long receiveTime) {
        this.receiveTime = receiveTime;
    }


}
